﻿using System;

namespace TodoSoft.Controls
{
	public class TreeGridCell
	{
		public TreeGridRow Row;
		public TreeGridColumn Column;

		public event Action<TreeGridCell> CellClick;

		public void Click()
		{
			if (CellClick != null)
			{
				CellClick(this);
			}
			else
			{
				Column.OnCellClick(this);
			}
		}
	}
}